//登录方法
 const login = (username: string, password: string) => {
    // return uni.request({
    //     url: '/login',
    //     method: 'POST',
    //     data: {
    //         username,
    //         password
    //     }
    // });
    // 模拟登录成功的响应
    return new Promise((resolve) => {
        setTimeout(() => {
            resolve({
                statusCode: 200,
                data: {
                    code: 200,
                    message: '登录成功',
                    data: {
                        token: 'mock_token_123456',
                        username
                    }
                }
            });
        }, 500);
    });
};

export default{
    login
}